home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / security / doc / cert_advisories / CA-89:02.sun.restore.hole < prev    next >
Encoding:
Text File  |  1989-07-25  |  2.7 KB  |  69 lines

  1.  
  2. CA-89:02
  3.                                  CERT Advisory
  4.                                  July 26, 1989
  5.                                Sun Restore Hole
  6. -----------------------------------------------------------------------------
  7.  
  8. A security hole has been found in SunOS restore.  This problem affects
  9. SunOS 4.0, 4.0.1, and 4.0.3 systems.  It does not appear in SunOS 3.5.
  10. The problem occurs because restore is setuid to root.  Without going
  11. into details, is sufficient to say that this is a serious hole.  All
  12. SunOS 4.0 installations should install this workaround.  Note that a
  13. user does need to have an existing account to exploit this hole.
  14.  
  15. There are two workarounds that will fix the problem.  The first is
  16. slightly more secure but has some side-effects.  
  17.  
  18. 1) Make restore non-setuid by becoming root and doing a 
  19. chmod 750 /usr/etc/restore
  20.  
  21. This makes restore non-setuid and unreadable and unexecutable by
  22. ordinary users.
  23.  
  24. Making restore non-setuid affects the restore command using a remote
  25. tape drive.  You will no longer be able to run a restore from another
  26. machine as an ordinary user; instead, you'll have be root to do so.
  27. (The reason for this is that the remote tape drive daemon on the
  28. machine with the tape drive expects a request on a TCP privileged
  29. port.  Under SunOS, you can't get a privileged port unless you are
  30. root.  By making restore non-setuid, when you run restore and request
  31. a remote tape drive, restore won't be able to get a privileged port,
  32. so the remote tape drive daemon won't talk to it.)
  33.  
  34. 2) If you do need to have some users run restore from remote tape
  35. drives without being root, you can use the following workaround.
  36.  
  37. cd /usr/etc
  38. chgrp operator restore
  39. chmod 4550 restore
  40.  
  41. This allows the use of restore by some trusted group.  In this case,
  42. we used the group 'operator', but you may substitute any other group
  43. that you trust with access to the tape drive.  Thus, restore is still
  44. setuid and vulnerable, but only to the people in the trusted group.
  45.  
  46. The 4550 makes restore readable and executable by the group you
  47. specified, and unreadable by everyone else.
  48.  
  49. Sun knows about this problem (Sun Bug 1019265) and will put in a more
  50. permanent fix in a future release of SunOS. 
  51.  
  52. -----------------------------------------------------------------------------
  53.  
  54. J. Paul Holbrook
  55. Computer Emergency Response Team (CERT)
  56. Software Engineering Institute
  57. Carnegie Mellon University
  58. Pittsburgh, PA 15213-3890
  59.  
  60. Internet: cert@cert.sei.cmu.edu
  61. Telephone: 412-268-7090 24-hour hotline: CERT personnel answer
  62.            7:30a.m.-6:00p.m. EST, on call for
  63.            emergencies other hours.
  64.  
  65. Past advisories and other information are available for anonymous ftp
  66. from cert.sei.cmu.edu (192.88.209.5).
  67.  
  68.  
  69.